package com.example.my_invitation_service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * 
 * @TableName users
 */
@TableName(value ="users")
@Data
public class Users implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private String id;

    /**
     * 
     */
    @TableField(value = "name")
    private String name;

    /**
     * 
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 
     */
    @TableField(value = "idcode")
    private String idcode;

    /**
     * 
     */
    @TableField(value = "allchecked")
    private boolean allchecked;

    /**
     * 
     */
    @TableField(value = "credatetime")
    private Date credatetime = new Timestamp(new Date().getTime());

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}